package com.tarim.streetdance.mapper;

import com.tarim.streetdance.model.FileSystem;
import com.tarim.streetdance.model.FileSystemWithBLOBs;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("FileSystemMapper")
public interface FileSystemMapper {
    int deleteByPrimaryKey(String id);

    int insert(FileSystemWithBLOBs record);

    //新增文件
    int insertSelective(FileSystemWithBLOBs record);

    //批量新增
    int insertFiles(List<FileSystemWithBLOBs> list);

    FileSystemWithBLOBs selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(FileSystemWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(FileSystemWithBLOBs record);

    int updateByPrimaryKey(FileSystem record);
}